import time
from Test_Case.back_User_Login import login as no1_back
from Data.report_for_txt import report as resu
from Driver.Testing import Test_all
from Test_Case.front_End_Regist import front_Regist
class main_Interface:
    def __init__(self):
        # 1.后端用户登录生成txt
        no1_back().all()
        time.sleep(1)
        # 2.订单中心的添加发货单及客户中心的添加会员生成txt
        Test_all().test_all_order()
        time.sleep(1)
        # 3.商品中心添加商品生成txt
        front_Regist().loading_Case()
        # 生成报告
        print("等待两秒生成报告！！")
        time.sleep(2)
        resu().test_report()
main_Interface()
